package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.TravelCommend;
import cn.wolfcode.luowowo.article.query.TravelCommendQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ITravelCommendService {
    /**
     * 查询TravelCommend的分页对象
     * @param qo
     * @return
     */
    PageInfo query(TravelCommendQuery qo);

    /**
     * 保存或者新增travelCommend对象
     * @param travelCommend
     */
    void saveOrUpdate(TravelCommend travelCommend);

    /**
     * 根据id删除攻略目录
     * @param id
     */
    void delete(Long id);

    /**
     * 查看前5个推荐的攻略
     * @param
     * @return
     */
    List<TravelCommend> queryForContentTop5();
}
